#include "gcc-plugin.h"
#include <stdio.h>

int plugin_is_GPL_compatible;

void handle_end_of_compilation_unit(void *event_data, void *data)
{
    printf("End of compilation\n");
}


int
plugin_init(struct plugin_name_args *plugin_info,
            struct plugin_gcc_version *version)
{
	// Application des callbacks
	register_callback(plugin_info->full_name, PLUGIN_FINISH_UNIT, handle_end_of_compilation_unit, NULL);


	printf("Plugin GCC\n");
	printf("GCC Version %s\n",version->basever);
	return 0;
}
